# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Grigory Kirillov <txgk@bk.ru>
pkgname=stb
pkgver=20210910
_githash=af1a5bc352164740c1cc1354942b1c6b72eacb8a
pkgrel=0
pkgdesc="Single-file public domain (or MIT licensed) libraries for C/C++"
url="https://github.com/nothings/stb"
arch="noarch"
license="MIT"
# tests always return 0 exit code
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nothings/stb/archive/$_githash.tar.gz"
builddir="$srcdir/$pkgname-$_githash"

package() {
	mv stb_vorbis.c stb_vorbis.h
	install -Dm644 stb_*.h -t "$pkgdir"/usr/include/
	install -Dm644 docs/* -t "$pkgdir"/usr/share/doc/"$pkgname"/
}

sha512sums="
5937baa1a9b7342ddc0e41c37ba0ea6b0c878f670a81b55bb124681e6b5e381fdc1d9557c96637e3ba082d6d968ed67a78b47f16aa5555c1c43394d1f9e57f2d  stb-20210910.tar.gz
"
